import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

// 导入组件页面
import home from '../components/tabbar/Home.vue'
import member from '../components/tabbar/Member.vue'
import search from '../components/tabbar/Search.vue'
import shoppcar from '../components/tabbar/ShoppCar.vue'
import newslist from '../components/news/NewsList.vue'
import newsdetails from '../components/news/NewsDetails.vue'

export default new Router({
  // 自定义类名 为mui-actie 此时点击当前图标就会高亮
  linkActiveClass: 'mui-active',
  routes: [
      {path: '/', redirect: '/home'},
      {path: '/home', component: home},
      {path: '/member', component: member},
      {path: '/search', component: search},
      {path: '/shoppcar', component: shoppcar},
      {path: '/home/newslist', component: newslist},
      {path: '/home/newsDetails/:id', component: newsdetails},
      
  ]
})
